﻿//打印一个URL，预览打印
function PrintOneURL(strURL) {
    LODOP = getLodop(document.getElementById('LODOP_OB'), document.getElementById('LODOP_EM'));
    LODOP.PRINT_INIT(strURL);
    LODOP.SET_PRINT_PAGESIZE(2, 0, 0, "A4");
    LODOP.ADD_PRINT_URL(50, 60, "100%", "100%", strURL);
    LODOP.SET_PRINT_STYLEA(0, "HOrient", 3);
    LODOP.SET_PRINT_STYLEA(0, "VOrient", 3);
    //		LODOP.SET_SHOW_MODE("MESSAGE_GETING_URL",""); //该语句隐藏进度条或修改提示信息
    //		LODOP.SET_SHOW_MODE("MESSAGE_PARSING_URL","");//该语句隐藏进度条或修改提示信息
    LODOP.PREVIEW();
    //LODOP.PRINT();
};
function PrintOneURLz(strURL) {
    LODOP = getLodop(document.getElementById('LODOP_OB'), document.getElementById('LODOP_EM'));
    LODOP.PRINT_INIT(strURL);
    LODOP.SET_PRINT_PAGESIZE(1, 1800, 2500, "A4");
    LODOP.ADD_PRINT_URL(60, 50, 60, 810, strURL);
    //LODOP.ADD_PRINT_HTM("5mm", 34, "RightMargin:0.9cm", "BottomMargin:9mm","");
    LODOP.SET_PRINT_STYLEA(0, "HOrient", 3);
    LODOP.SET_PRINT_STYLEA(0, "VOrient", 3);
    //		LODOP.SET_SHOW_MODE("MESSAGE_GETING_URL",""); //该语句隐藏进度条或修改提示信息
    //		LODOP.SET_SHOW_MODE("MESSAGE_PARSING_URL","");//该语句隐藏进度条或修改提示信息
    LODOP.PRINT();
};
var LODOP = getLodop(document.getElementById('LODOP_OB'), document.getElementById('LODOP_EM'));